<!--<style>
.belong-project{ padding: 5px 0; max-height: 51px; overflow: hidden; line-height: 18px; overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
</style>-->
<div class="mt15 clearfix">
    <span class="fl lh30">新增时间：</span>
    <div class="fl clearfix">
        <input type="text" class="input-text input-data fl" ui-date="" format="yyyy-MM-dd" id="start_date" max-date="#F{$dp.$D(\'end_date'\)}" ng-model="query.startDate">
        <span class="fl lh30">&nbsp;&nbsp;-&nbsp;&nbsp;</span>
        <input type="text" class="input-text input-data fl" ui-date="" format="yyyy-MM-dd" id="end_date" min-date="#F{$dp.$D(\'start_date'\)}" ng-model="query.endDate">
        <input type="text" class="input-text fl ml25 c-gray" style="width:300px" placeholder="活动名称" ng-model="query.searchValue" ng-enter="queryDataBySearch()" >
        <a href="javascript:void(0)" class="btn fl mlr5" ng-click="queryDataBySearch()">搜索</a>
    </div>
    <a href="javascript:void(0)"
                       title="新增游戏规则"
                       ui-dialog="新增游戏规则"
                       ui-dialog-data="{}"
                       ui-dialog-show="initEditGameDialog($data, $dialog, $dialogScope, {})"
                       ui-dialog-ok="save($data, $dialog, $dialogScope)"
                       ui-dialog-cache="false"
                       ui-dialog-url="inc/edit.html"
                       class="btn fr permission p-50032207-01"
                            >新增游戏规则</a>
</div>
<div class="sheet mt15">
    <table width="100%">
        <thead>
        <tr class="thead">
            <th height="34" width="50">
                <div class="text-center">
                    <label>序号</label>
                </div>
            </th>
            <th width="120">新增时间</th>
            <th width="180">游戏规则名称</th>
            <th width="340">游戏信息</th>
            <th width="60">创建人</th>
            <th width="100">状态</th>
            <th width="150">操作</th>
        </tr>
        </thead>
        <tbody>
            <tr ng-repeat="record in query.data">
                <td height="90" class="text-center">
                    <p ng-bind="((query.pageIndex - 1) * query.pageSize) + $index + 1"></p>
                </td>
                <td><p ng-bind="record.createTime"></p></td>
                <td style="text-align:left">
                    <p ng-bind="record.ruleSettingName"></p>
                    <p class="c-gray mt5">绑定项目：</p>
                      <div ng-repeat="item in record.project">
                          <p ng-bind="item.ProjName"></p>
                      </div>
                </td>
                <td class="game_ptb10" style="text-align:left; padding:5px">
                    <!-- <p class="ng-hide" ng-show="!!record.set1">经纪人注册：<span ng-bind="record.set1.gameName"></span></p> -->
                    <p class="ng-hide" ng-show="!!record.set2">报备：<span ng-bind="record.set2.gameName"></span>&nbsp;&nbsp;&nbsp;&nbsp;<span ng-class="{'c-gray':record.set2.gameState==-1,'c-orange':record.set2.gameState==1}">({{record.set2.gameState==-1?'已结束':(record.set2.gameState==1?'即将结束':'进行中')}})</span></p>
                    <p class="ng-hide" ng-show="!!record.set3">到访：<span ng-bind="record.set3.gameName"></span>&nbsp;&nbsp;&nbsp;&nbsp;<span ng-class="{'c-gray':record.set3.gameState==-1,'c-orange':record.set3.gameState==1}">({{record.set3.gameState==-1?'已结束':(record.set3.gameState==1?'即将结束':'进行中')}})</span></p>
                    <p class="ng-hide" ng-show="!!record.set4">认筹：<span ng-bind="record.set4.gameName"></span>&nbsp;&nbsp;&nbsp;&nbsp;<span ng-class="{'c-gray':record.set4.gameState==-1,'c-orange':record.set4.gameState==1}">({{record.set4.gameState==-1?'已结束':(record.set4.gameState==1?'即将结束':'进行中')}})</span></p>
                    <p class="ng-hide" ng-show="!!record.set5">认购：<span ng-bind="record.set5.gameName"></span>&nbsp;&nbsp;&nbsp;&nbsp;<span ng-class="{'c-gray':record.set5.gameState==-1,'c-orange':record.set5.gameState==1}">({{record.set5.gameState==-1?'已结束':(record.set5.gameState==1?'即将结束':'进行中')}})</span></p>
                    <p class="ng-hide" ng-show="!!record.set6">签约：<span ng-bind="record.set6.gameName"></span>&nbsp;&nbsp;&nbsp;&nbsp;<span ng-class="{'c-gray':record.set6.gameState==-1,'c-orange':record.set6.gameState==1}">({{record.set6.gameState==-1?'已结束':(record.set6.gameState==1?'即将结束':'进行中')}})</span></p>
                    <!-- <p class="ng-hide" ng-show="!!record.set7">结佣：<span ng-bind="record.set7.gameName"></span></p> -->
                </td>
                <td><p ng-bind="record.createUser"></p></td>
                <td><p ng-bind="record.stateDesc" ng-if="record.ruleState"></p><p ng-bind="record.gameState"></p></td>
                <td>
                    <a href="javascript:void(0)" title="开始" class="c-orange mr5 ng-hide permission p-50032207-04-inline" ng-show="record.ruleState === '-1'" ng-click="query.ctrlGame(record,'start')">开始</a>
                    <a href="javascript:void(0)" title="暂停" class="c-orange mr5 ng-hide permission p-50032207-05-inline" ng-show="record.ruleState === '1'" ng-click="query.ctrlGame(record,'pause')">暂停</a>
                    <a href="javascript:void(0)"
                       title="编辑"
                       ui-dialog="编辑游戏规则"
                       ui-dialog-data="record"
                       ui-dialog-show="initEditGameDialog($data, $dialog, $dialogScope, record)"
                       ui-dialog-ok="save($data, $dialog, $dialogScope)"
                       ui-dialog-cache="false"
                       ui-dialog-url="inc/edit.html"
                       class="c-orange mr5 permission p-50032207-02-inline"
                            >编辑</a>
                    <a href="javascript:void(0)" title="删除" class="c-orange permission p-50032207-03-inline" ng-click="query.ctrlGame(record)">删除</a>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="no-data ng-hide border-tnone" ng-show="!query.hasData"><span>没有相关记录</span></div>
    
</div>
<div ui-pagination page-index="query.pageIndex" total="query.total" page-size="query.pageSize" changed="query.doQuery($pageIndex)"></div>